home *** CD-ROM | disk | FTP | other *** search
Modula Definition | 1997-05-14 | 1.2 KB | 37 lines | [TEXT/3PRM] |
- definition module graphics
-
- import deltaEventIO, deltaFont, deltaPicture
- import board
-
- :: Size :== (!Int,!Int)
-
- displaywidth :== 250
- displayheight :== 130
- boardwidth :== 391
- boardheight :== 391
- squarewidth :: Int
- squareheight :: Int
-
- instance toString ControlState
- toStringCS :: String -> ControlState
-
- abs2rel :: !(!Int,!Int) -> (!Int,!Int)
-
- boardlook :: !Board !Size !SelectState ControlState -> [DrawFunction]
- redrawboard :: !Board !(IOState t) -> IOState t
- drawfocus :: !Bool !ControlState -> [DrawFunction]
-
- letterboxlook :: ![Char] SelectState ControlState -> [DrawFunction]
- drawletterbox :: ![Char] !(IOState t) -> IOState t
-
- drawplayer1letters :: ![Char] !(IOState t) -> IOState t
- drawplayer2letters :: ![Char] !(IOState t) -> IOState t
- playerletterslook :: !Size SelectState !ControlState -> [DrawFunction]
-
- drawplayer1score :: !Int !(IOState t) -> IOState t
- drawplayer2score :: !Int !(IOState t) -> IOState t
-
- drawcommunication :: ![String] !(IOState t) -> IOState t
- displaylook :: !Size SelectState !ControlState -> [DrawFunction]
- drawprogress :: !Player !Progress !Placing !(IOState t) -> IOState t
-